import instance from "@/Utils/http";    
import qs from "qs";

/**
 *  店铺分类列表
 */
export const shopCategoryListAPI = () => { 
    return instance.get("/shopCategoryList");
};

/**
 * 添加店铺
 */
export const shopAddAPI = (data) => { 
    return instance.post("/shopAdd", qs.stringify(data));
};

/**
 * 修改店铺
 */



/**
 * 店铺列表
 */
export const shopListAPI = (data) => { 
    return instance.get("/shopList", { params: data });
};

/**
 * 加载审核的店铺
 */
export const shopAuditListAPI = (data) => { 
    return instance.get("/shopAuditList", { params: data });
};
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
/**
 * 店铺审核
 */
export const shopAuditAPI = (data) => { 
    return instance.post("/shopAudit", qs.stringify(data));
};
/**
 * 分页查询店铺分类列表
 */
export const shopCategoryPageListAPI = (data) => { 
    return instance.get("/shopCategory", { params: data });
};

/**
 * 店铺分类添加
 */
export const shopCategoryAddAPI = (data) => { 
    return instance.post("/shopCategory", qs.stringify(data));
};
/**
 * 店铺分类修改
 */
export const shopCategoryUpdateAPI = (data) => { 
    return instance.post("/shopCategory", qs.stringify(data));
};
/**
 * 店铺分类删除
 */
export const shopCategoryDeleteAPI = (data) => { 
    return instance.get("/shopCategory", { params: data });
};

